package com.cyh.testdesignpattern.state;

import android.util.Log;

//奖品发放完了的状态
public class DispenseOutState extends State {
    //初始化时传入活动引用，没有奖品后改变其状态
    RaffleAction action;

    public DispenseOutState(RaffleAction action) {
        this.action = action;
    }

    //当前状态不可以扣除积分
    @Override
    public void deductMoney() {
        Log.i("DispenseState", "奖品数量为0，不能扣分！");
    }

    //当前状态不能抽奖
    @Override
    public boolean raffle() {
        Log.i("DispenseState", "奖品数量为0，不能抽奖！");
        return false;
    }

    //当前状态不能发放奖品
    @Override
    public void dispensePrize() {
        Log.i("DispenseState", "奖品数量为0，不能发放！");
    }
}
